from tkinter import *

x = int(input())
y = int(input())
k = int(input()) * 10
coords = [x, y, k + x, 0 + y, k + x, k + y, k*2 + x, k + y, k*2 + x, 0 + y, k*3 + x, 0 + y, k*3 + x, k*2 + y, 0 + x, k*2 + y]
if x + (3 * k) <= 500 and y + (2 * k) <= 500:
    root = Tk()
    root.title("Ит-марафон")
    root.geometry("500x500")

    canvas = Canvas(bg="white", width=500, height=500)
    canvas.pack(anchor=CENTER, expand=1)

    canvas.create_polygon(coords)
    root.mainloop()
else:
    print("Фигура не вмещается")
